package com.xtx.mapper;

import com.xtx.vo.HomeBannerVo;
import com.xtx.vo.HomeCasualLookVo;
import com.xtx.vo.HomeHotVo;
import com.xtx.vo.HomeNewVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AllMapper {
    @Select("SELECT * FROM home_banner where type = #{id}")
    List<HomeBannerVo> getHomeBanner(Integer id);

    @Select("select id,name,`desc`,price,picture from home_new ")
    List<HomeNewVo> getHomeNew();
    @Select("select id,picture,title,alt from home_hot")
    List<HomeHotVo> getHomeHot();

    @Select("select id,picture,name,`desc`,price from casual_look")
    List<HomeCasualLookVo> getHomeCasualLook();
}
